package com.food.foodapi.exception;

public class AuthenticationException extends RuntimeException {

    private Integer statusCode;

    // 构造方法，接受错误消息和状态码
    public AuthenticationException(String message, int statusCode) {
        super(message);
        this.statusCode = statusCode;
    }

    public int getStatusCode() {
        return statusCode;
    }
}
